	<?php
	session_start();
	
	require('Scripts/Mapa/php/security/authenticate.php');
	
	if (!isset($_SESSION['signature2']) or $_SESSION['signature2'] == '') {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Login - 500 KV</title>
	<link id="page_favicon" href="favicon.ico" rel="icon" type="image/x-icon" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="Content/login.css" media="screen" rel="stylesheet" type="text/css" /> 
	<link href="Scripts/Mapa/ext/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
	<script src="Scripts/Mapa/ext/adapter/ext/ext-base.js" type="text/javascript"></script>
	<script src="Scripts/Mapa/ext/ext-all.js" type="text/javascript"></script>
	<script type="text/javascript" src="Scripts/Mapa/login.js"></script>
</head>
<body>
	<div id="container">
		
		<div id="header"> 
			<a class="logoib" href="/" data-skip-pjax="true">Login</a>
			<span>Interfaz Web de Administraci&oacute;n</span>
			<div> 
			<span>de Par&aacute;metros de Configuraci&oacute;n</span>
			</div> 
			<span>del Sistema SAGML500</span>
		</div> 
	
		<div id="contenido-principal">			
			<div id="formulario"></div>
			<input type="image" class="btnIngresar" src="Scripts/Mapa/img/btn-login.gif" onclick="logear();" style="border-width:0px;" />				
		</div>
		<div id="footer-container"></div>
	</div>
</body>
</html>
<?php
	exit();
}
else
{
	header ("Location: main.php");
}
?>
